package edu.edu_realtime_publisher_second.service.implementation;

import edu.edu_realtime_publisher_second.mapper.*;
import edu.edu_realtime_publisher_second.service.SugarSevice;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Service;

import java.math.BigDecimal;
import java.util.HashMap;
import java.util.List;
import java.util.Map;

@Service
public class SugarServiceImpl implements SugarSevice {

    @Autowired
    private SugarMapper sugarMapper;

    @Override
    public List<TradeProvinceAmount> getTradeProvinceAmount(int date) {
        return sugarMapper.selectTradeProvinceAmount(date);
    }

    @Override
    public List<TradeSourceTradeSum> getTradeSourceSum(int date) {
        return sugarMapper.selectTradeSourceSum(date);
    }

    @Override
    public List<TestCourseTestPaper> getTestCourseTestPaper(int date,int limit) {
        return sugarMapper.selectTestCourseTestPaper(date,limit);
    }

    @Override
    public List<TestScoreRangeBean> getTestScoreRange(int date, int limit) {
        return sugarMapper.selectTestScoreRange(date,limit);
    }
}
